package com.shop.auto.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.shop.auto.service.common.Response;
import com.shop.auto.service.entity.UserEntity;
import com.shop.auto.service.request.LoginReq;
import com.shop.auto.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhangls on 2018/3/7.
 */
@RestController
@RequestMapping("user")
public class UserController {

    @Reference(version = "1.0.0")
    private UserService userService;

    @RequestMapping("login")
    public Response<UserEntity> login(LoginReq loginReq) {
        return userService.login(loginReq);
    }

}
